/* 标签管理区域 */
.tags-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 25px;
}

.tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tags-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.add-btn.small {
    padding: 8px 15px;
    font-size: 14px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.tag-name {
    margin-right: 8px;
}

.tag-actions {
    display: flex;
    gap: 5px;
}

.tag-edit, .tag-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tag-edit:hover, .tag-delete:hover {
    opacity: 1;
}

/* 标签选择器 */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag-option {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-option input[type="checkbox"] {
    margin-right: 5px;
}

/* 书签卡片中的标签 */
.bookmark-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.bookmark-tag {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
}

/* 标签筛选下拉框 */
#tagFilter {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    min-width: 150px;
}